export interface IAccount {
  name: string;
  password: string;
}

export interface ILoginResult {
  id: number;
  name: string;
  token: string;
}

export interface Role {
  id: number;
  name: string;
  intro: string;
  createAt: string;
  updateAt: string;
}

export interface Department {
  id: number;
  name: string;
  parentId: null;
  createAt: string;
  updateAt: string;
  leader: string;
}

export interface UserInfo {
  id: number;
  name: string;
  cellphone: string;
  enable: number;
  createAt: string;
  updateAt: string;
  role: Role;
  department: Department;
}

export interface IDataType<T = any> {
  code: number;
  data: T;
}
